package com.bdcom.autotest.ui.snp;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;

import javax.swing.Box;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class SnPanelForChassis extends AbsPanel {
	
	private JTextField sn1;
	
	public SnPanelForChassis() {
		this.setBackground(Color.WHITE);
		this.setPreferredSize(new Dimension( 0 , 240 ));
		this.setLayout( new FlowLayout(FlowLayout.LEFT ) );
		Font font2 = new Font("Dialog",Font.PLAIN, 14);
		
		JLabel jLabel = new JLabel("SN:");
		jLabel.setFont(font2);
		sn1 = new JTextField(20);
		sn1.setFont(font2);
		
		sn1.setText("");
		
		JLabel jLabel2 = new JLabel("类型");
		jLabel2.setFont(font2);
		JTextField ttype = new JTextField(13);
		ttype.setEditable(false);
		ttype.setFont(font2);
		
		this.add(jLabel);
		this.add(sn1);
		this.add(Box.createHorizontalStrut(10) );
		this.add(jLabel2);
		this.add(ttype);
		
		numToSNField.put("1", sn1);
		numToTField.put("1", ttype);
		
	}

	
}
